import request from '@/utils/request'
// -------- 合同类型 --------

let BASE_ADDRESS = 'base/contractType'
let BASE_LIST='doc/scontract'

//  分页查询
export function getContractTypeListApi(params) {
    return request({
        url: `base/contractType/list`,
        method: "get",
        params
    })
}
//合同名称查询
export function getscontractListApi(params) {
    return request({
        url: `/doc/scontract/contractList`,
        method: "get",
        params,
        
    })
}
//合同搜索
export function selectContractBySearchApi(params) {
    return request({
        url: `/base/contractType/selectContractBySearch`,
        method: "get",
        params,
        
    })
}
//查询合同是否购买
export function getscontractifPurchase(params) {
    return request({
        url: `/doc/mail/ifPurchase`,
        method: "get",
        params,
    })
}
//查询审核完成以后对应的报告
export function getcontractAiApi(params) {
    return request({
        url: `/doc/contractAi/getInfo`,
        method: "get",
        params,
        
    })
}


// export function getscontractListinfo(params) {
//     return request({
//         url: `/doc/scontract/getInfoByUser`,
//         method: "get",
//         params,
        
//     })
// }

//合同名称查询对应的合同内容
export function getscontractListinfo(params) {
    return request({
        url: `/doc/scontract/getInfo`,
        method: "get",
        params,
        
    })
}

//合同智审核

export function contractreview(params) {
    return request({
        url: `/doc/contractAi/list`,
        method: "get",
        params,
        
    })
}




